package com.sumainfor.wx.tenant.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sumainfor.wx.tenant.entity.TctenTenantCoupons;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author PuaChen
 * @since 2019-01-28
 */
public interface TenantCouponsMapper{


    /**
     * <p>
     * 根据租客id查询优惠券详情
     * </p>
     *
     * @author: zhoucong
     * @since: 2019-03-25
     */
    List<Map<String,Object>> getTenantCouponsByTenId(Map<String, Object> params);

    /**
    * <p>
    * 根据租客id查询租客-优惠券的数量
    * </p>
    *
    * @author: zhoucong
    * @since:2019-03-28
    */
    Integer getTenantCouponsByTenIdCount(Map<String, Object> params);



    /**
    * <p>
    * 添加到租客-优惠券里面
    * </p>
    *
    * @author: zhoucong
    * @since:2019-03-28
    */
    int insertTenantCoupons(Map<String, Object> params);

}
